//
//  GenericCheckPasswordController.m
//  HuLaQuan
//
//  Created by hok on 1/21/16.
//  Copyright © 2016 Jianghao. All rights reserved.
//

#import "GenericCheckPasswordController.h"

#import "ZCTradeView.h"

@interface GenericCheckPasswordController ()<ZCTradeViewDelegate>

@property (nonatomic,strong) ZCTradeView *tradeView;

@end

@implementation GenericCheckPasswordController

- (NSMutableDictionary *)passwordAndInfos
{
    if (!_passwordAndInfos) {
        _passwordAndInfos = [[NSMutableDictionary alloc] init];
    }
    return _passwordAndInfos;
}
- (void)setupUI
{
    self.title = self.titleOfNav;
    
    [self setupNavBackButton];
    
    
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:YES];
    self.tradeView =  [[ZCTradeView alloc] initWithTitle:self.titleOfPassword andStyle:ZCControllerStyle];
    self.tradeView.delegate = self;
    [self.tradeView showInView:self.view];
}
- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:YES];
    [self.tradeView removeFromSuperview];
    self.tradeView.delegate = nil;
    self.tradeView = nil;
}
-(NSString *)finish:(NSString *)pwd{
    
    return pwd;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
